﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 义工报名表2
	/// </summary>
	public class BaoMing2
	{ 
		#region BaoMing2
		/// <summary>
		/// 
		/// </summary>
		public BaoMing2()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public BaoMing2(Int32 id)
		{
			this.id = id;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public BaoMing2(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["id"]),out id);
			this.orderNO = Convert.ToString(dr["orderNO"]);
			this.babyName = Convert.ToString(dr["babyName"]);
			this.parentName = Convert.ToString(dr["parentName"]);
			this.parentEducation = Convert.ToString(dr["parentEducation"]);
			this.mobile = Convert.ToString(dr["mobile"]);
			this.parentSkill = Convert.ToString(dr["parentSkill"]);
			this.workUnit = Convert.ToString(dr["workUnit"]);
			this.resources = Convert.ToString(dr["resources"]);
			this.notes = Convert.ToString(dr["notes"]);
			this.status = Convert.ToInt16(dr["status"]);
			this.checkInfos = Convert.ToString(dr["checkInfos"]);
			int.TryParse(Convert.ToString(dr["userId"]),out userId);
			if(dr["addTime"] != DBNull.Value)
				this.addTime = Convert.ToDateTime(dr["addTime"]);
			
		}
		#endregion
		
		
		#region Id
		private Int32 id;
		/// <summary>	 
		/// ID
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 Id
		{
			get{ return id; }
			set{ id= value; }
		}
		#endregion
		
		#region OrderNO
		private System.String orderNO;
		/// <summary>	 
		/// 订单号
		/// </summary>
		public System.String OrderNO
		{
			get{ return orderNO; }
			set{ orderNO= value; }
		}
		#endregion
		
		#region BabyName
		private System.String babyName;
		/// <summary>	 
		/// 幼儿姓名
		/// </summary>
		public System.String BabyName
		{
			get{ return babyName; }
			set{ babyName= value; }
		}
		#endregion
		
		#region ParentName
		private System.String parentName;
		/// <summary>	 
		/// 家长姓名
		/// </summary>
		public System.String ParentName
		{
			get{ return parentName; }
			set{ parentName= value; }
		}
		#endregion
		
		#region ParentEducation
		private System.String parentEducation;
		/// <summary>	 
		/// 家长学历
		/// </summary>
		public System.String ParentEducation
		{
			get{ return parentEducation; }
			set{ parentEducation= value; }
		}
		#endregion
		
		#region Mobile
		private System.String mobile;
		/// <summary>	 
		/// 联系电话
		/// </summary>
		public System.String Mobile
		{
			get{ return mobile; }
			set{ mobile= value; }
		}
		#endregion
		
		#region ParentSkill
		private System.String parentSkill;
		/// <summary>	 
		/// 家长特长
		/// </summary>
		public System.String ParentSkill
		{
			get{ return parentSkill; }
			set{ parentSkill= value; }
		}
		#endregion
		
		#region WorkUnit
		private System.String workUnit;
		/// <summary>	 
		/// 工作单位
		/// </summary>
		public System.String WorkUnit
		{
			get{ return workUnit; }
			set{ workUnit= value; }
		}
		#endregion
		
		#region Resources
		private System.String resources;
		/// <summary>	 
		/// 可提供资源
		/// </summary>
		public System.String Resources
		{
			get{ return resources; }
			set{ resources= value; }
		}
		#endregion
		
		#region Notes
		private System.String notes;
		/// <summary>	 
		/// 备注
		/// </summary>
		public System.String Notes
		{
			get{ return notes; }
			set{ notes= value; }
		}
		#endregion
		
		#region Status
		private Int16 status;
		/// <summary>	 
		/// 状态
		/// </summary>
		public Int16 Status
		{
			get{ return status; }
			set{ status= value; }
		}
		#endregion
		
		#region CheckInfos
		private System.String checkInfos;
		/// <summary>	 
		/// 处理情况
		/// </summary>
		public System.String CheckInfos
		{
			get{ return checkInfos; }
			set{ checkInfos= value; }
		}
		#endregion
		
		#region UserId
		private Int32 userId;
		/// <summary>	 
		/// 用户ID
		/// </summary>
		public Int32 UserId
		{
			get{ return userId; }
			set{ userId= value; }
		}
		#endregion
		
		#region AddTime
		private DateTime addTime;
		/// <summary>	 
		/// 添加时间
		/// </summary>
		public DateTime AddTime
		{
			get{ return addTime; }
			set{ addTime= value; }
		}
		#endregion

	}
}
